package com.ruoyi.detail.service.impl;

import com.ruoyi.detail.domain.HouseVoteScoreDetail;
import com.ruoyi.detail.mapper.HouseVoteScoreDetailMapper;
import com.ruoyi.detail.service.IHouseVoteScoreDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 投票明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-07
 */
@Service
public class HouseVoteScoreDetailServiceImpl implements IHouseVoteScoreDetailService
{
    @Autowired
    private HouseVoteScoreDetailMapper houseVoteScoreDetailMapper;

    /**
     * 查询投票明细
     * 
     * @param detailId 投票明细主键
     * @return 投票明细
     */
    @Override
    public HouseVoteScoreDetail selectHouseVoteScoreDetailByDetailId(Long detailId)
    {
        return houseVoteScoreDetailMapper.selectHouseVoteScoreDetailByDetailId(detailId);
    }

    /**
     * 查询投票明细列表
     * 
     * @param houseVoteScoreDetail 投票明细
     * @return 投票明细
     */
    @Override
    public List<HouseVoteScoreDetail> selectHouseVoteScoreDetailList(HouseVoteScoreDetail houseVoteScoreDetail)
    {
        return houseVoteScoreDetailMapper.selectHouseVoteScoreDetailList(houseVoteScoreDetail);
    }

    /**
     * 新增投票明细
     * 
     * @param houseVoteScoreDetail 投票明细
     * @return 结果
     */
    @Override
    public int insertHouseVoteScoreDetail(HouseVoteScoreDetail houseVoteScoreDetail)
    {
        return houseVoteScoreDetailMapper.insertHouseVoteScoreDetail(houseVoteScoreDetail);
    }

    /**
     * 修改投票明细
     * 
     * @param houseVoteScoreDetail 投票明细
     * @return 结果
     */
    @Override
    public int updateHouseVoteScoreDetail(HouseVoteScoreDetail houseVoteScoreDetail)
    {
        return houseVoteScoreDetailMapper.updateHouseVoteScoreDetail(houseVoteScoreDetail);
    }

    /**
     * 批量删除投票明细
     * 
     * @param detailIds 需要删除的投票明细主键
     * @return 结果
     */
    @Override
    public int deleteHouseVoteScoreDetailByDetailIds(Long[] detailIds)
    {
        return houseVoteScoreDetailMapper.deleteHouseVoteScoreDetailByDetailIds(detailIds);
    }

    /**
     * 删除投票明细信息
     * 
     * @param detailId 投票明细主键
     * @return 结果
     */
    @Override
    public int deleteHouseVoteScoreDetailByDetailId(Long detailId)
    {
        return houseVoteScoreDetailMapper.deleteHouseVoteScoreDetailByDetailId(detailId);
    }
}
